import request from '@/utils/request'

// 查询银行名称列表
export function listBank(query) {
  return request({
    url: '/house_sale/Bank/list',
    method: 'get',
    params: query
  })
}

// 查询银行名称详细
export function getBank(bankid) {
  return request({
    url: '/house_sale/Bank/' + bankid,
    method: 'get'
  })
}

// 新增银行名称
export function addBank(data) {
  return request({
    url: '/house_sale/Bank',
    method: 'post',
    data: data
  })
}

// 修改银行名称
export function updateBank(data) {
  return request({
    url: '/house_sale/Bank',
    method: 'put',
    data: data
  })
}

// 删除银行名称
export function delBank(bankid) {
  return request({
    url: '/house_sale/Bank/' + bankid,
    method: 'delete'
  })
}
